.Net Framework > v3.5.21022.8 > System > Linq > Enumerable > Single<TSource> Single<TSource>(IEnumerable<TSource>)
Single<TSource>(IEnumerable<TSource>,Func<TSource,Boolean>)


Single<TSource>(IEnumerable<TSource>)

Category
Method
Description
Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence.
Type
TSource
Character
public, static
Parameters
NameTypeDescription
sourceSystem.Collections.Generic.IEnumerable<TSource>
Attributes
NameValue/Assignment
ExtensionAttribute
Tags
01892ABD01, 02E3ABA98D, 0322962271

Single<TSource>(IEnumerable<TSource>,Func<TSource,Boolean>)

Category
Method
Description
Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.
Type
TSource
Character
public, static
Parameters
NameTypeDescription
sourceSystem.Collections.Generic.IEnumerable<TSource>
predicateSystem.Func<TSource,Boolean>
Attributes
NameValue/Assignment
ExtensionAttribute
Tags
01892ABD01, 02E3ABA98D, 0322962271

Software for developers
.Net Components
Delphi Components
Software for Android Developers
More information resources
WinAPI Programmer's Reference
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database